package com.qtu.user_service.feign.fallback;

import com.qtu.user_service.feign.OpenClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class OpenClientFallBack implements OpenClient {
    @Override
    public String setByTime(String key, Object value, long time) {
        log.error("redis-service 仓库登录信息设置失败！ key="+key+" value="+value+" time="+time);
        return null;
    }

    @Override
    public String expire(String key, long time) {
        return null;
    }

    @Override
    public String delete(String key) {
        log.error("redis-service 仓库登录信息失败！ key="+key);
        return null;
    }

    @Override
    public Object get(String key) {
        log.error("redis-service 仓库登录信息获取失败！ key="+key);
        return null;
    }

    @Override
    public String set(String key, Object value) {
        return null;
    }

    @Override
    public String exists(String key) {
        log.error("redis-service 仓库登录信息失效！ key="+key);
        return null;
    }
}
